package org.yefei.homeworkday08;

import java.util.Scanner;

public class ArraysSeven {

	public static void main(String[] args) {
		// 2:定义一个整数数组，判断是否是递增有序的，即数组中的每一个数，都不大于其后面的数，比如{1,3,6｝，{1,2,2,4,6,9,9}等
		int a1[] = new int[8];
        System.out.println("请输入8个数");
        Scanner input = new Scanner(System.in);
        for (int i = 0; i < a1.length; i++) {
            a1[i] = input.nextInt();
        }
        boolean flag = true;
        for (int i = 0; i < a1.length - 1; i++) {
            if (a1[i] > a1[i + 1]) {
                flag = false;
                break;
            }
        }
        if (flag == true)
		{
			System.out.println("是递增数列");
		}
        else {
            System.out.println("不是递增");
        }

    }



	}


